<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/uilibs.jsp"%>
<title>首页</title>
<script>
$(function(){
    //Dao.saveOrUpdate("framework_config",{'id':'26','key':'key34','value':'value24'},function(data){
    //    console.log(data);
    //});
    
    //Dao.del("framework_config","27",function(data){
    //    console.log(data);
    //});
    
    //Dao.all("framework_config",function(data){
    //    console.log(data);
    //});
    
    //Dao.get("framework_config","26",function(data){
    //    console.log(JSON.stringify(data));
    //    Session.set("config",data,function(data){
    //        console.log(data);
    //    });
    //});
    
    //Session.get("config",function(data){
    //    console.log(data);
    //});
    
    //Dao.many("select * from framework_config where `key` like '%t%'",function(data){
    //    console.log(data);
    //});
    
    //Dao.update("insert into framework_config(`key`, value) values(?,?)","sjiang",526,function(data){
    //    console.log(data);
    //});
    
    //Dao.update("update framework_config set value=? where `key`=?","sjiang","sjiang",function(data){
    //    console.log(data);
    //});
    
    //Dao.update("delete from framework_config where `key`=?","sjiang",function(data){
    //    console.log(data);
    //});
    
    //Dao.query("select * from framework_config where `key`=?",33,function(data){
    //    console.log(data);
    //});
    

    //Dao.batch("update framework_config set value=? where `key`=?",[["v1","key25"],["v2","key2"]],function(data){
    //    console.log(data);
    //});
    
    //Dao.callProc("getconfig",function(data){
    //    console.log(data);
    //});
});

var socket=null; 
window.WebSocket = window.WebSocket || window.MozWebSocket;
if (!window.WebSocket) { alert('Error: WebSocket is not supported .'); }
else{ socket = new WebSocket('ws://...');}

</script>
</head>
<body>
</body>
</html>